// 1-6 实例-6 求商和余数
/**
 * 获取用户的输入两个数字，并将两个数字相除，然后将商和余数输出到屏幕：
 */
#include <iostream>
int main(void)
{
  int divisor, dividend, quotient, remainder;
  std::cout << "请输入被除数:";
  std::cin >> dividend;
  std::cout << "请输入除数:";
  std::cin >> divisor;
  quotient = dividend / divisor;

  std::cout << "商:" << quotient << std::endl;
  remainder = dividend % divisor;
  std::cout << "余数:" << remainder << std::endl;

  printf("---------------end-----------------\n");
  return 0;
}